#include "SGNodeMaterial.h"

SGNodeMaterial::SGNodeMaterial(CMaterial* material)
:m_diffuse(0, CColor()), m_specular(0, CColor()), m_ambient(0, CColor()), m_reflect(0, CColor()),
m_shininess(0, 0), m_refractionIndex(0, 0), m_transparancyCoef(0, 0), m_material(material)
{
}

SGNodeMaterial::~SGNodeMaterial()
{
}

void SGNodeMaterial::doUpdate()
{
	m_material->setDiffuse(m_diffuse);
	//m_material->m_specular = m_specular;
	//m_material->m_ambient = m_ambient;
	m_material->m_reflect = m_reflect;
	m_material->m_shininess = m_shininess;
	m_material->m_refractionIndex = m_refractionIndex;
}